<?php
	require("DBops.php");
	session_start();
	$con = connect("localhost", "root", "", "lab");


$newPsd=  $_POST["password1"];

$ID=$_GET['id'];

$exec="update personalinfo set password='$newPsd' where ID= $ID";

$result=mysql_query($exec);

echo"<script> location.href='Infor.php?id=$ID'</script>";

?>